package cn.bj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bj.beans.Yxfw_jewellery_rotate;
import cn.bj.dao.Yxfw_jewellery_rotateMapper;

@Service
public class JewelleryRotateService {

	@Autowired
	Yxfw_jewellery_rotateMapper yxfw_jewellery_rotateMapper;

	// 查询所有
	public List<Yxfw_jewellery_rotate> selectAllJeweRotate() {
		return yxfw_jewellery_rotateMapper.selectByExample(null);
	}

	// 插入
	public int insertJeweRotate(Yxfw_jewellery_rotate jeweRotate) {
		return yxfw_jewellery_rotateMapper.insert(jeweRotate);
	}

	// 删除
	public int deleteJeweRotate(Integer id) {
		return yxfw_jewellery_rotateMapper.deleteByPrimaryKey(id);
	}

	// 查询单个
	public Yxfw_jewellery_rotate selectById(Integer id) {
		return yxfw_jewellery_rotateMapper.selectByPrimaryKey(id);
	}

	// 修改
	public int updateJeweR(Yxfw_jewellery_rotate jeweR) {
		return yxfw_jewellery_rotateMapper.updateByPrimaryKey(jeweR);
	}

}
